﻿/*
 * oled_driver.h
 *
 *  Created on: 2017年8月6日
 *      Author: Administrator
 */

#ifndef _OLED_DRIVER_H_
#define _OLED_DRIVER_H_


#include <stdint.h>

extern const unsigned char BMP1[];


void delay_ms(uint32_t time);
void IIC_init(void );
void IIC_start(void);
void IIC_stop(void);
void Write_IIC_Byte(uint8_t IIC_Byte);
void I2C_Configuration(void);
void I2C_WriteByte(uint8_t addr,uint8_t data);
void WriteCmd(unsigned char I2C_Command);
void WriteDat(unsigned char I2C_Data);

void SetDot(unsigned char x,unsigned char y,int color);
void OLED_Init(void);
void OLED_SetPos(unsigned char x, unsigned char y);
void OLED_Fill(unsigned char fill_Data);
void OLED_CLS(void);
void OLED_ON(void);
void OLED_OFF(void);

void SetDot_FS(unsigned char x,unsigned char y,unsigned char color);
void OLED_Screen_display(void);
void OLED_Draw_circle_SF(unsigned char x,unsigned char y,unsigned char r,unsigned char color );
void OLED_Draw_circle2_SF(unsigned char x0,unsigned char y0,unsigned char r,unsigned char color);
void hline(unsigned char x,unsigned char y,unsigned char changdu,unsigned char color );
void shuline(unsigned char x,unsigned char y,unsigned char changdu,unsigned char color );
void OLED_Line_SF(unsigned char x0,unsigned char y0,unsigned char x1,unsigned char y1,unsigned char color);
void OLED_ShowStr_SF(unsigned char x, unsigned char y, unsigned char ch[], unsigned char TextSize);
void OLED_ShowCN_SF(unsigned char x, unsigned char y, unsigned char N);
void OLED_DrawBMP_SF(unsigned char x0,unsigned char y0,unsigned char x1,unsigned char y1,const unsigned char BMP[]);
void  Draw_Box_FS(unsigned char x,unsigned char y,unsigned char chang,unsigned char kuan,unsigned char full,unsigned char color);
void OLED_CLS_SF(void);//清屏;
void OLED_PART_CLS_SF(unsigned char x,unsigned char y,unsigned char lengh,unsigned char  wide,unsigned char color);


#endif /* APP_OLED_OLED_DRIVER_H_ */
